

package com.hazelcast.cp.lock.exception;

import com.hazelcast.cp.lock.FencedLock;
import com.hazelcast.cp.session.CPSession;

/**
 * Thrown when an endpoint (either a Hazelcast server or a client) interacts
 * with a {@link FencedLock} instance after its CP session is closed
 * in the underlying CP group and its lock ownership is cancelled.
 *
 * @see FencedLock
 * @see CPSession
 */
public class LockOwnershipLostException extends IllegalMonitorStateException {

    public LockOwnershipLostException() {
    }

    public LockOwnershipLostException(String message) {
        super(message);
    }

}
